package com.ganzi.ganziserver.dao;

import com.ganzi.ganziserver.core.RolesPermissions;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

@Repository
public interface RolesPermissionsDao {

    public RolesPermissions findRolesPermissionsById(long id) throws Exception;
    public List<RolesPermissions> findRolesPermissionsByRolesId(long id) throws Exception;
    public List<RolesPermissions> findRolesPermissionsByPermissionsId(long id) throws Exception;
    public void insertRolesPermissions(RolesPermissions roles) throws Exception;
    public void deleteRolesPermissions(long id) throws Exception;
}
